import request from '@/utils/request'

// 评估机构的查询
export function getAssessOrganizationData(data){
    console.log(data,"<<<=== data 查询请求传递过来的参数")
    return request({
        url:"/pk-retirement/evaluation-agency/evaluation-agency/list",
        method:"get",
        params:data
    })
}

// 新增评估机构
export function addNewAssessOrganizationData(data){
    return request({
        url:"/pk-retirement/evaluation-agency/evaluation-agency/save",
        method:"post",
        data:data
    })
}

// 修改评估机构
export function editAssessOrganizationData(data){
    return request({
        url:"/pk-retirement/evaluation-agency/evaluation-agency/update",
        method:"put",
        data:data
    })
}

// 删除评估机构
export function deleteAssessOrganizationData(data){
    return request({
        url:"/pk-retirement/evaluation-agency/evaluation-agency/delete",
        method:"delete",
        data:data
    })
}

// ---------------------------------------------

// 查询评估人员
export function getAssessPeopleData(data){
    return request({
        url:"/pk-retirement/evaluation-agency/evaluation-agency-personnel/list",
        method:"get",
        params:data
    })
}

// 拿到岗位的数据
export function getPositionData(){
    return request({
        url:"/system/post/getPositionList",
        method:"get"
    })
}

// 新增评估人员
export function addNewAssessPeopleData(data){
    return request({
        url:"/pk-retirement/evaluation-agency/evaluation-agency-personnel/save",
        method:"post",
        data:data
    })
}

// 编辑评估人员
export function editAssessPeopleData(data){
    return request({
        url:"/pk-retirement/evaluation-agency/evaluation-agency-personnel/update",
        method:"put",
        data:data
    })
}

// 删除评估人员
export function deleteAssessPeopleData(data){
    return request({
        url:"/pk-retirement/evaluation-agency/evaluation-agency-personnel/delete",
        method:"delete",
        data:data
    })
}